<?php get_header(); ?>

<div id="container">
	<div class="containerspacer">
    </div> 
    
    <div id="single">      
            	
    	<div class="singlewelcome">
        	<!--
			<h1><?php the_title(); ?></h1>
            -->
            <img class="welcomeheadline" src="<?php echo get_post_meta($post->ID, "ProjectName", true);?>"/>
    		
            <?php the_excerpt(); ?>
    	</div>
       
		<?php if(have_posts()): ?>
			<?php while(have_posts()) : the_post(); ?>    
            
			<?php the_content(); ?>     
    
    	<?php endwhile; ?>    	
			<!--        	
			<div class="navigation">
        		<?php posts_nav_link(); ?>
       		</div>
            -->
    
    	<?php else: ?>    	    
    	<?php endif; ?>
    
    	<div class="comments">
    		<?php comments_template(); ?>
   		</div> 
    </div> 
    
    <div id="singleprojects"> 
       
   		<div id="smallfeaturedprojects">
        	<!--
    		<h2><?php _e('Featured Projects'); ?></h2>
            -->            
            <div id="smallfeaturedprojectsheadline">
    		</div>
            
    		<?php query_posts('category_name=Featured'); ?>    	
			<?php if(have_posts()): ?>
				<?php while(have_posts()) : the_post(); ?>    
    			<div class="smallfeaturedproject">  
            		<a href="<?php the_permalink(); ?>" title="<?php _e('Check out '); ?><?php the_permalink(); ?>">      	
            			<img class="smallfeaturedprojectthumbnail" src="<?php echo get_post_meta($post->ID, "Thumbnail", true);?>"/>
        	
            			<p class="projectname">
	    					<?php the_title(); ?>
           				</p>     
                	</a>            
        		</div>    
    		<?php endwhile; ?>       
    		<?php else: ?>        
    		<?php endif; ?>
    	</div>
        
    	<div id="smallprojects">
        	<!--
    		<h2><?php _e('All Projects'); ?></h2>
            -->
            <div id="smallprojectsheadline">
    		</div>
    	
        	<?php query_posts('category_name!=Featured'); ?>
    	
       		<?php if(have_posts()): ?>
				<?php while(have_posts()) : the_post(); ?>
    		
           		<div class="smallproject">        	
           			<p class="smallprojectname">
           				<?php _e(' '); ?>
            			<a  href="<?php the_permalink(); ?>" title="<?php _e('Check out '); ?><?php the_title(); ?>">	
                			<?php the_title(); ?>
            			</a>  
            			<?php _e(' '); ?>
           			</p> 
            	</div>
    		<?php endwhile; ?> 
    
    		<?php else: ?>       
    		<?php endif; ?>
    	</div>    
    </div> 	
</div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>
</body>  

</div>  

</html>